import request from '@/utils/request'

export function addBudget (parameter) {
  return request({
    url: '/boss/budget/add',
    method: 'post',
    data: parameter
  })
}
export function budgetList (parameter) {
  return request({
    url: '/boss/budget/listByPage',
    method: 'post',
    data: parameter
  })
}
export function budgetReview (parameter) {
  return request({
    url: '/boss/budget/review',
    method: 'post',
    data: parameter
  })
}
export function budgetDetail (parameter) {
  return request({
    url: '/boss/budget/getDetail',
    method: 'post',
    data: parameter
  })
}
export function budgetExport (parameter) {
  return request({
    url: '/boss/budget/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}

// 调整预算弹窗
export function detailForAdjust (parameter) {
  return request({
    url: '/boss/budget/detailForAdjust',
    method: 'post',
    data: parameter
  })
}
// 确定调整
export function adjust (parameter) {
  return request({
    url: '/boss/budget/adjust',
    method: 'post',
    data: parameter
  })
}
